地図:奈良県

説明

指定した座標に奈良県を描きます。map()のパラメーターにはX座標、Y座標、描画する色を指定します。

[以下のJavaScriptプログラムをダウンロード]

function map(x,y,c){var n=128;
uart(n,14,3,x,y,c,6,6,7,15,15,15,31,15);
uart(n,14,3,x+8,y,c,0,14,255,255,255,255,255,255);
uart(n,14,3,x+16,y,c,0,128,192,224,192,192,128,128);
y=y+8;
uart(n,14,3,x,y,c,15,15,15,15,7,7,15,15);
uart(n,14,3,x+8,y,c,255,255,255,255,255,255,255,255);
uart(n,14,3,x+16,y,c,192,248,254,254,254,224,192,192);
y=y+8;
uart(n,14,3,x,y,c,15,15,15,15,15,3,31,31);
uart(n,14,3,x+8,y,c,255,255,255,255,255,255,255,255);
uart(n,14,3,x+16,y,c,224,224,224,224,240,240,224,224);
y=y+8;
uart(n,14,3,x,y,c,63,127,127,255,255,127,63,31);
uart(n,14,3,x+8,y,c,255,255,255,255,255,255,255,254);
uart(n,14,3,x+16,y,c,224,224,224,224,192,224,0,0);
y=y+8;
uart(n,14,3,x,y,c,31,63,63,57,16,0,0,0);
uart(n,14,3,x+8,y,c,248,240,240,160,0,0,0,0);
y=y+8;
}
uart("PC CLEAR 0b\n");
map(0,0,1);

目次に戻る